import request from '@/utils/request'

export function getSupUserList(query) {
    return request({
        url: '/supervisor/user/getSupUserList',
        method: 'get',
        params: query
    })
}

export function addSupUser(data) {
    return request({
        url: '/supervisor/user/addSupUser',
        method: 'post',
        data
    })
}

export function updateSupUser(data) {
    return request({
        url: '/supervisor/user/updateSupUser',
        method: 'put',
        data
    })
}

export function deleteSupUser(id) {
    return request({
        url: '/supervisor/user/deleteSupUser/' + id,
        method: 'delete'
    })
}
